package api

import request "gitee.com/changeden/volcengine-livesaas-request-go"

type SilenceUserRequest struct {
	ActivityId *int64 `json:"ActivityId"`
	UserId     *int64 `json:"UserId"`
	Status     *bool  `json:"Status"`
}
type SilenceUserResponse struct {
	Status bool `json:"Status"`
}

func (instance *Instance) SilenceUser(data *SilenceUserRequest) (*SilenceUserResponse, error) {
	d := request.Data{
		Action: "SilenceUserAPI",
	}
	bindBody(&d, *data)
	var res SilenceUserResponse
	err := instance.post(&d, &res)
	return &res, err
}
